#include "firstwin.h"
#include "ui_firstwin.h"
#include "secondwin.h"

firstwin::firstwin(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::firstwin)
{
    ui->setupUi(this);
}

firstwin::~firstwin()
{
    delete ui;
}

void firstwin::on_nextBt_clicked()
{
    secondWin *win = new secondWin;
    win->show();

    //把第一个界面销毁
    this->close();
}
